﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WarOfDev.Core.Infrastructure.DependencyManagement;
using WarOfDev.Core.Configuration;

namespace WarOfDev.Core.Infrastructure
{
    /// <summary>
    /// 
    ///
    /// </summary>
    public interface IEngine
    {
        ContainerManager ContainerManager { get; }

        /// <summary>
        /// Initialize components and plugins in the nop environment.
        /// </summary>
        /// <param name="config">Config</param>
        void Initialize(WarOfDevConfig config);

        T Resolve<T>() where T : class;

        object Resolve(Type type);

        T[] ResolveAll<T>();
    }
}
